﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using libTho;

public partial class FileSearch : System.Web.UI.Page
{
    string CodeSearch ;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
            string HoSoId = ((Request.QueryString["HoSoId"] == null) ? "-1" : Request.QueryString["HoSoId"].ToString());
            if (HoSoId != "-1")
            {
                divContainSearch.InnerHtml = VTMC.GetHS(int.Parse(HoSoId));
                divAllInfo.InnerHtml = VTMC.GetAll_Info(CodeSearch);
            }
            
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        CodeSearch = txtTuKhoa.Text.Trim();
        divContainSearch.InnerHtml = VTMC.GetHS_KhachHang(CodeSearch);
        divAllInfo.InnerHtml = VTMC.GetAll_Info(CodeSearch);

    }
}
